/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data.sunriseset;

import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 *
 * @author bsmith
 */
public class Morning {

    private String sunrise;
    private Twilight twilight;

    public Twilight getTwilight() {
        return twilight;
    }

    public void setTwilight(Twilight twilight) {
        this.twilight = twilight;
    }

    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    public String getSunrise() {
        return sunrise;
    }

    public void setSunrise(String sunrise) {
        this.sunrise = sunrise;
    }

    @Override
    public String toString() {
        return "Morning ["
                + (twilight != null ? " " + twilight + ", " : "")
                + (sunrise != null ? "sunrise=" + sunrise : "") + "]";
    }
}
